
var o = 'TX00000000'
var tx = o.substring(0,2)
console.log(tx)

const tmpl = addrs => `
  <table>
  ${addrs.map(addr => `
    <tr><td>${addr.first}</td></tr>
    <tr><td>${addr.last}</td></tr>
  `).join('')}
  </table>
`;
const data = [
    { first: '<Jane>', last: 'Bond' },
    { first: 'Lars', last: '<Croft>' },
];

console.log(tmpl(data));

let arr = [1,2,3]
arr.splice(2,1,4)
console.log(arr)
let arr2 = [1,2,3]
arr2.pop()
arr2.push(4)
console.log(arr2)